package org.openrbac.rbac.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.openrbac.rbac.controller.base.BaseController;
import org.openrbac.rbac.entity.Image;
import org.openrbac.rbac.service.ImageService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 梁富贵
 * @Date 2024/5/6
 **/
@RestController
@RequestMapping("/img")
public class ImageController extends BaseController<ImageService, Image> {

    @GetMapping("/getLunBo")
    public IPage<Image> getLunbo(@RequestParam("num") Integer num) {
        return service.getImages(num);
    }
}
